import request from '@/utils/request'

// 查询绩效统计列表
export function listPcs(query) {
  return request({
    url: '/oa/pcs/list',
    method: 'get',
    params: query
  })
}

// 查询绩效统计详细
export function getPcs(recordId) {
  return request({
    url: '/oa/pcs/' + recordId,
    method: 'get'
  })
}

// 新增绩效统计
export function addPcs(data) {
  return request({
    url: '/oa/pcs',
    method: 'post',
    data: data
  })
}

// 修改绩效统计
export function updatePcs(data) {
  return request({
    url: '/oa/pcs',
    method: 'put',
    data: data
  })
}

// 删除绩效统计
export function delPcs(recordId) {
  return request({
    url: '/oa/pcs/' + recordId,
    method: 'delete'
  })
}
